<template>
	<view class="">
		<uni-badge :inverted="true" :max-num="9999" :text="countSales || initData.salesVolume"
			type="info" :customStyle="{border: '0px solid rgba(0, 0, 0, 0.05)',fontSize:'28rpx',color:'#494949'}">
		</uni-badge>
	</view>
</template>

<script>
	import Constants from '@/constants';
	//商品购买量组件，依赖uview组件库u-badge组件
	//@group 业务组件
	export default {
		//
		name: 'sales',
		//
		mixins: [Constants],
		//
		props: {
			//购买数量
			countSales: {
				type: [String, Number],
				default: 0,
				required: true
			}
		},
		//
		data() {
			return {};
		},
	};
</script>

<style lang="scss" scoped></style>